import myAxios from '@/utils/request'

// 添加购物车
export const postCart = (obj) => {
  return myAxios({
    url: '/cart/add',
    method: 'POST',
    data: obj
  })
}

// 获取购物车列表
export const getCartList = () => myAxios.get('/cart/list')

// 修改购物车
export const updateCart = (obj) => {
  return myAxios({
    url: '/cart/update',
    method: 'POST',
    data: obj
  })
}
